package com.nancy.java_design.decorator.demo1;

/**
 * 抽象装饰器
 */
public abstract class Decorator extends FastFood {

    // 声明快餐变量
    private FastFood fastFood;

    // 构造方法
    public Decorator(float price, String desc, FastFood fastFood) {
        super(price, desc);
        this.fastFood = fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
}
